package com.icart.entities;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

@Entity
@Table(name = "wo_info", schema = "ams", catalog = "")
public class WoInfoEntity {
    private String oid;
    private Long chnid;
    private long custcarid;
    private Long custid;
    private String carno;
    private String brand;
    private String cartype;
    private String wotype;
    private Long busiid;
    private String busiitem;
    private BigDecimal planfee;
    private BigDecimal realfee;
    private BigDecimal creditfee;
    private BigDecimal wtfee;
    private Integer wtcount;
    private BigDecimal metefee;
    private BigDecimal agentfee;
    private BigDecimal judgefee;
    private BigDecimal checkfee;
    private BigDecimal handlefee;
    private BigDecimal tcdisc;
    private BigDecimal czkdisc;
    private BigDecimal tckdisc;
    private BigDecimal jckdisc;
    private BigDecimal pointpay;
    private BigDecimal custleveldisc;
    private BigDecimal cleardisc;
    private BigDecimal paydisc;
    private String billno;
    private Long servman;
    private Long makefeeman;
    private Timestamp makefeettime;
    private Long getfeeman;
    private Timestamp getfeetime;
    private Timestamp cometime;
    private Timestamp gotime;
    private String relateoid;
    private Long tcid;
    private Long cardid;
    private String oremark;
    private String accountremark;
    private String payremark;
    private Long comekilo;
    private Integer stat;
    private Timestamp completetime;
    private BigDecimal makefee;

    @Id
    @Column(name = "oid")
    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    @Basic
    @Column(name = "chnid")
    public Long getChnid() {
        return chnid;
    }

    public void setChnid(Long chnid) {
        this.chnid = chnid;
    }

    @Basic
    @Column(name = "custcarid")
    public long getCustcarid() {
        return custcarid;
    }

    public void setCustcarid(long custcarid) {
        this.custcarid = custcarid;
    }

    @Basic
    @Column(name = "custid")
    public Long getCustid() {
        return custid;
    }

    public void setCustid(Long custid) {
        this.custid = custid;
    }

    @Basic
    @Column(name = "carno")
    public String getCarno() {
        return carno;
    }

    public void setCarno(String carno) {
        this.carno = carno;
    }

    @Basic
    @Column(name = "brand")
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Basic
    @Column(name = "cartype")
    public String getCartype() {
        return cartype;
    }

    public void setCartype(String cartype) {
        this.cartype = cartype;
    }

    @Basic
    @Column(name = "wotype")
    public String getWotype() {
        return wotype;
    }

    public void setWotype(String wotype) {
        this.wotype = wotype;
    }

    @Basic
    @Column(name = "busiid")
    public Long getBusiid() {
        return busiid;
    }

    public void setBusiid(Long busiid) {
        this.busiid = busiid;
    }

    @Basic
    @Column(name = "busiitem")
    public String getBusiitem() {
        return busiitem;
    }

    public void setBusiitem(String busiitem) {
        this.busiitem = busiitem;
    }

    @Basic
    @Column(name = "planfee")
    public BigDecimal getPlanfee() {
        return planfee;
    }

    public void setPlanfee(BigDecimal planfee) {
        this.planfee = planfee;
    }

    @Basic
    @Column(name = "realfee")
    public BigDecimal getRealfee() {
        return realfee;
    }

    public void setRealfee(BigDecimal realfee) {
        this.realfee = realfee;
    }

    @Basic
    @Column(name = "creditfee")
    public BigDecimal getCreditfee() {
        return creditfee;
    }

    public void setCreditfee(BigDecimal creditfee) {
        this.creditfee = creditfee;
    }

    @Basic
    @Column(name = "wtfee")
    public BigDecimal getWtfee() {
        return wtfee;
    }

    public void setWtfee(BigDecimal wtfee) {
        this.wtfee = wtfee;
    }

    @Basic
    @Column(name = "wtcount")
    public Integer getWtcount() {
        return wtcount;
    }

    public void setWtcount(Integer wtcount) {
        this.wtcount = wtcount;
    }

    @Basic
    @Column(name = "metefee")
    public BigDecimal getMetefee() {
        return metefee;
    }

    public void setMetefee(BigDecimal metefee) {
        this.metefee = metefee;
    }

    @Basic
    @Column(name = "agentfee")
    public BigDecimal getAgentfee() {
        return agentfee;
    }

    public void setAgentfee(BigDecimal agentfee) {
        this.agentfee = agentfee;
    }

    @Basic
    @Column(name = "judgefee")
    public BigDecimal getJudgefee() {
        return judgefee;
    }

    public void setJudgefee(BigDecimal judgefee) {
        this.judgefee = judgefee;
    }

    @Basic
    @Column(name = "checkfee")
    public BigDecimal getCheckfee() {
        return checkfee;
    }

    public void setCheckfee(BigDecimal checkfee) {
        this.checkfee = checkfee;
    }

    @Basic
    @Column(name = "handlefee")
    public BigDecimal getHandlefee() {
        return handlefee;
    }

    public void setHandlefee(BigDecimal handlefee) {
        this.handlefee = handlefee;
    }

    @Basic
    @Column(name = "tcdisc")
    public BigDecimal getTcdisc() {
        return tcdisc;
    }

    public void setTcdisc(BigDecimal tcdisc) {
        this.tcdisc = tcdisc;
    }

    @Basic
    @Column(name = "czkdisc")
    public BigDecimal getCzkdisc() {
        return czkdisc;
    }

    public void setCzkdisc(BigDecimal czkdisc) {
        this.czkdisc = czkdisc;
    }

    @Basic
    @Column(name = "tckdisc")
    public BigDecimal getTckdisc() {
        return tckdisc;
    }

    public void setTckdisc(BigDecimal tckdisc) {
        this.tckdisc = tckdisc;
    }

    @Basic
    @Column(name = "jckdisc")
    public BigDecimal getJckdisc() {
        return jckdisc;
    }

    public void setJckdisc(BigDecimal jckdisc) {
        this.jckdisc = jckdisc;
    }

    @Basic
    @Column(name = "pointpay")
    public BigDecimal getPointpay() {
        return pointpay;
    }

    public void setPointpay(BigDecimal pointpay) {
        this.pointpay = pointpay;
    }

    @Basic
    @Column(name = "custleveldisc")
    public BigDecimal getCustleveldisc() {
        return custleveldisc;
    }

    public void setCustleveldisc(BigDecimal custleveldisc) {
        this.custleveldisc = custleveldisc;
    }

    @Basic
    @Column(name = "cleardisc")
    public BigDecimal getCleardisc() {
        return cleardisc;
    }

    public void setCleardisc(BigDecimal cleardisc) {
        this.cleardisc = cleardisc;
    }

    @Basic
    @Column(name = "paydisc")
    public BigDecimal getPaydisc() {
        return paydisc;
    }

    public void setPaydisc(BigDecimal paydisc) {
        this.paydisc = paydisc;
    }

    @Basic
    @Column(name = "billno")
    public String getBillno() {
        return billno;
    }

    public void setBillno(String billno) {
        this.billno = billno;
    }

    @Basic
    @Column(name = "servman")
    public Long getServman() {
        return servman;
    }

    public void setServman(Long servman) {
        this.servman = servman;
    }

    @Basic
    @Column(name = "makefeeman")
    public Long getMakefeeman() {
        return makefeeman;
    }

    public void setMakefeeman(Long makefeeman) {
        this.makefeeman = makefeeman;
    }

    @Basic
    @Column(name = "makefeettime")
    public Timestamp getMakefeettime() {
        return makefeettime;
    }

    public void setMakefeettime(Timestamp makefeettime) {
        this.makefeettime = makefeettime;
    }

    @Basic
    @Column(name = "getfeeman")
    public Long getGetfeeman() {
        return getfeeman;
    }

    public void setGetfeeman(Long getfeeman) {
        this.getfeeman = getfeeman;
    }

    @Basic
    @Column(name = "getfeetime")
    public Timestamp getGetfeetime() {
        return getfeetime;
    }

    public void setGetfeetime(Timestamp getfeetime) {
        this.getfeetime = getfeetime;
    }

    @Basic
    @Column(name = "cometime")
    public Timestamp getCometime() {
        return cometime;
    }

    public void setCometime(Timestamp cometime) {
        this.cometime = cometime;
    }

    @Basic
    @Column(name = "gotime")
    public Timestamp getGotime() {
        return gotime;
    }

    public void setGotime(Timestamp gotime) {
        this.gotime = gotime;
    }

    @Basic
    @Column(name = "relateoid")
    public String getRelateoid() {
        return relateoid;
    }

    public void setRelateoid(String relateoid) {
        this.relateoid = relateoid;
    }

    @Basic
    @Column(name = "tcid")
    public Long getTcid() {
        return tcid;
    }

    public void setTcid(Long tcid) {
        this.tcid = tcid;
    }

    @Basic
    @Column(name = "cardid")
    public Long getCardid() {
        return cardid;
    }

    public void setCardid(Long cardid) {
        this.cardid = cardid;
    }

    @Basic
    @Column(name = "oremark")
    public String getOremark() {
        return oremark;
    }

    public void setOremark(String oremark) {
        this.oremark = oremark;
    }

    @Basic
    @Column(name = "accountremark")
    public String getAccountremark() {
        return accountremark;
    }

    public void setAccountremark(String accountremark) {
        this.accountremark = accountremark;
    }

    @Basic
    @Column(name = "payremark")
    public String getPayremark() {
        return payremark;
    }

    public void setPayremark(String payremark) {
        this.payremark = payremark;
    }

    @Basic
    @Column(name = "comekilo")
    public Long getComekilo() {
        return comekilo;
    }

    public void setComekilo(Long comekilo) {
        this.comekilo = comekilo;
    }

    @Basic
    @Column(name = "stat")
    public Integer getStat() {
        return stat;
    }

    public void setStat(Integer stat) {
        this.stat = stat;
    }

    @Basic
    @Column(name = "completetime")
    public Timestamp getCompletetime() {
        return completetime;
    }

    public void setCompletetime(Timestamp completetime) {
        this.completetime = completetime;
    }

    @Basic
    @Column(name = "makefee")
    public BigDecimal getMakefee() {
        return makefee;
    }

    public void setMakefee(BigDecimal makefee) {
        this.makefee = makefee;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WoInfoEntity that = (WoInfoEntity) o;

        if (custcarid != that.custcarid) return false;
        if (oid != null ? !oid.equals(that.oid) : that.oid != null) return false;
        if (chnid != null ? !chnid.equals(that.chnid) : that.chnid != null) return false;
        if (custid != null ? !custid.equals(that.custid) : that.custid != null) return false;
        if (carno != null ? !carno.equals(that.carno) : that.carno != null) return false;
        if (brand != null ? !brand.equals(that.brand) : that.brand != null) return false;
        if (cartype != null ? !cartype.equals(that.cartype) : that.cartype != null) return false;
        if (wotype != null ? !wotype.equals(that.wotype) : that.wotype != null) return false;
        if (busiid != null ? !busiid.equals(that.busiid) : that.busiid != null) return false;
        if (busiitem != null ? !busiitem.equals(that.busiitem) : that.busiitem != null) return false;
        if (planfee != null ? !planfee.equals(that.planfee) : that.planfee != null) return false;
        if (realfee != null ? !realfee.equals(that.realfee) : that.realfee != null) return false;
        if (creditfee != null ? !creditfee.equals(that.creditfee) : that.creditfee != null) return false;
        if (wtfee != null ? !wtfee.equals(that.wtfee) : that.wtfee != null) return false;
        if (wtcount != null ? !wtcount.equals(that.wtcount) : that.wtcount != null) return false;
        if (metefee != null ? !metefee.equals(that.metefee) : that.metefee != null) return false;
        if (agentfee != null ? !agentfee.equals(that.agentfee) : that.agentfee != null) return false;
        if (judgefee != null ? !judgefee.equals(that.judgefee) : that.judgefee != null) return false;
        if (checkfee != null ? !checkfee.equals(that.checkfee) : that.checkfee != null) return false;
        if (handlefee != null ? !handlefee.equals(that.handlefee) : that.handlefee != null) return false;
        if (tcdisc != null ? !tcdisc.equals(that.tcdisc) : that.tcdisc != null) return false;
        if (czkdisc != null ? !czkdisc.equals(that.czkdisc) : that.czkdisc != null) return false;
        if (tckdisc != null ? !tckdisc.equals(that.tckdisc) : that.tckdisc != null) return false;
        if (jckdisc != null ? !jckdisc.equals(that.jckdisc) : that.jckdisc != null) return false;
        if (pointpay != null ? !pointpay.equals(that.pointpay) : that.pointpay != null) return false;
        if (custleveldisc != null ? !custleveldisc.equals(that.custleveldisc) : that.custleveldisc != null)
            return false;
        if (cleardisc != null ? !cleardisc.equals(that.cleardisc) : that.cleardisc != null) return false;
        if (paydisc != null ? !paydisc.equals(that.paydisc) : that.paydisc != null) return false;
        if (billno != null ? !billno.equals(that.billno) : that.billno != null) return false;
        if (servman != null ? !servman.equals(that.servman) : that.servman != null) return false;
        if (makefeeman != null ? !makefeeman.equals(that.makefeeman) : that.makefeeman != null) return false;
        if (makefeettime != null ? !makefeettime.equals(that.makefeettime) : that.makefeettime != null) return false;
        if (getfeeman != null ? !getfeeman.equals(that.getfeeman) : that.getfeeman != null) return false;
        if (getfeetime != null ? !getfeetime.equals(that.getfeetime) : that.getfeetime != null) return false;
        if (cometime != null ? !cometime.equals(that.cometime) : that.cometime != null) return false;
        if (gotime != null ? !gotime.equals(that.gotime) : that.gotime != null) return false;
        if (relateoid != null ? !relateoid.equals(that.relateoid) : that.relateoid != null) return false;
        if (tcid != null ? !tcid.equals(that.tcid) : that.tcid != null) return false;
        if (cardid != null ? !cardid.equals(that.cardid) : that.cardid != null) return false;
        if (oremark != null ? !oremark.equals(that.oremark) : that.oremark != null) return false;
        if (accountremark != null ? !accountremark.equals(that.accountremark) : that.accountremark != null)
            return false;
        if (payremark != null ? !payremark.equals(that.payremark) : that.payremark != null) return false;
        if (comekilo != null ? !comekilo.equals(that.comekilo) : that.comekilo != null) return false;
        if (stat != null ? !stat.equals(that.stat) : that.stat != null) return false;
        if (completetime != null ? !completetime.equals(that.completetime) : that.completetime != null) return false;
        if (makefee != null ? !makefee.equals(that.makefee) : that.makefee != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = oid != null ? oid.hashCode() : 0;
        result = 31 * result + (chnid != null ? chnid.hashCode() : 0);
        result = 31 * result + (int) (custcarid ^ (custcarid >>> 32));
        result = 31 * result + (custid != null ? custid.hashCode() : 0);
        result = 31 * result + (carno != null ? carno.hashCode() : 0);
        result = 31 * result + (brand != null ? brand.hashCode() : 0);
        result = 31 * result + (cartype != null ? cartype.hashCode() : 0);
        result = 31 * result + (wotype != null ? wotype.hashCode() : 0);
        result = 31 * result + (busiid != null ? busiid.hashCode() : 0);
        result = 31 * result + (busiitem != null ? busiitem.hashCode() : 0);
        result = 31 * result + (planfee != null ? planfee.hashCode() : 0);
        result = 31 * result + (realfee != null ? realfee.hashCode() : 0);
        result = 31 * result + (creditfee != null ? creditfee.hashCode() : 0);
        result = 31 * result + (wtfee != null ? wtfee.hashCode() : 0);
        result = 31 * result + (wtcount != null ? wtcount.hashCode() : 0);
        result = 31 * result + (metefee != null ? metefee.hashCode() : 0);
        result = 31 * result + (agentfee != null ? agentfee.hashCode() : 0);
        result = 31 * result + (judgefee != null ? judgefee.hashCode() : 0);
        result = 31 * result + (checkfee != null ? checkfee.hashCode() : 0);
        result = 31 * result + (handlefee != null ? handlefee.hashCode() : 0);
        result = 31 * result + (tcdisc != null ? tcdisc.hashCode() : 0);
        result = 31 * result + (czkdisc != null ? czkdisc.hashCode() : 0);
        result = 31 * result + (tckdisc != null ? tckdisc.hashCode() : 0);
        result = 31 * result + (jckdisc != null ? jckdisc.hashCode() : 0);
        result = 31 * result + (pointpay != null ? pointpay.hashCode() : 0);
        result = 31 * result + (custleveldisc != null ? custleveldisc.hashCode() : 0);
        result = 31 * result + (cleardisc != null ? cleardisc.hashCode() : 0);
        result = 31 * result + (paydisc != null ? paydisc.hashCode() : 0);
        result = 31 * result + (billno != null ? billno.hashCode() : 0);
        result = 31 * result + (servman != null ? servman.hashCode() : 0);
        result = 31 * result + (makefeeman != null ? makefeeman.hashCode() : 0);
        result = 31 * result + (makefeettime != null ? makefeettime.hashCode() : 0);
        result = 31 * result + (getfeeman != null ? getfeeman.hashCode() : 0);
        result = 31 * result + (getfeetime != null ? getfeetime.hashCode() : 0);
        result = 31 * result + (cometime != null ? cometime.hashCode() : 0);
        result = 31 * result + (gotime != null ? gotime.hashCode() : 0);
        result = 31 * result + (relateoid != null ? relateoid.hashCode() : 0);
        result = 31 * result + (tcid != null ? tcid.hashCode() : 0);
        result = 31 * result + (cardid != null ? cardid.hashCode() : 0);
        result = 31 * result + (oremark != null ? oremark.hashCode() : 0);
        result = 31 * result + (accountremark != null ? accountremark.hashCode() : 0);
        result = 31 * result + (payremark != null ? payremark.hashCode() : 0);
        result = 31 * result + (comekilo != null ? comekilo.hashCode() : 0);
        result = 31 * result + (stat != null ? stat.hashCode() : 0);
        result = 31 * result + (completetime != null ? completetime.hashCode() : 0);
        result = 31 * result + (makefee != null ? makefee.hashCode() : 0);
        return result;
    }
}
